<template>
    <el-row>
        <el-col :span="4">
            <el-menu
                :default-active="activeIndex"
                mode="vertical"
                background-color="#545c64"
                text-color="#fff"
                active-text-color="#ffd04b"
                @select="handleSelect"
            >
                <el-menu-item index="user">用户管理</el-menu-item>
                <el-menu-item index="essay">文章合成管理</el-menu-item>
            </el-menu>
        </el-col>
        <el-col :span="20">

        </el-col>
    </el-row>
</template>

<script>
export default {
    data() {
        return {
            activeIndex:"user"
        }
    },
    name: "navbar",
    methods:{
        handleSelect(key, keyPath) {
            console.log(key, keyPath);
        }
    }
}
</script>

<style scoped>

</style>
